package com.zmm.zebulon.module.infra.biz.controller.admin.demo.demo02.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * description: 管理后台 - 示例分类新增/修改 Request VO
 *
 * @author zebulon
 * package com.zmm.zebulon.module.infra.biz.controller.admin.demo.demo02.vo
 * name: Demo02CategorySaveReqVO
 * date 2024/1/7 20:50
 */
@Schema(description = "管理后台 - 示例分类新增/修改 Request VO")
@Data
public class Demo02CategorySaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10304")
    private Long id;

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "名字不能为空")
    private String name;

    @Schema(description = "父级编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6080")
    @NotNull(message = "父级编号不能为空")
    private Long parentId;

}